package org.dromara.comm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.dromara.comm.domain.AsNickName;

@Mapper
public interface AsNickNameMapper extends BaseMapper<AsNickName> {

    @Select("SELECT * FROM as_nick_name ORDER BY RAND() LIMIT 1")
    AsNickName selectRandomNickName();

}
